package com.honeyms.project.blog.blogcomment.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.honeyms.framework.aspectj.lang.annotation.Excel;
import com.honeyms.framework.web.domain.BaseEntity;

/**
 * 评论详情对象 blog_comment
 * 
 * @author honeyms
 * @date 2020-11-04
 */
public class BlogComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long commentId;

    /** 评论者id */
    @Excel(name = "评论者id")
    private Long userId;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论时间 */
    @Excel(name = "评论时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 被回复评论人id */
    @Excel(name = "被回复评论人id")
    private Long pid;

    /** 评论的帖子id */
    @Excel(name = "评论的帖子id")
    private Long contentId;

    /** 类型:1评论,2回复 */
    @Excel(name = "类型:1评论,2回复")
    private Integer type;

    /** 被回复评论内容id */
    @Excel(name = "被回复评论内容id")
    private Long plnrid;

    public void setCommentId(Long commentId)
    {
        this.commentId = commentId;
    }

    public Long getCommentId()
    {
        return commentId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setPid(Long pid)
    {
        this.pid = pid;
    }

    public Long getPid()
    {
        return pid;
    }
    public void setContentId(Long contentId)
    {
        this.contentId = contentId;
    }

    public Long getContentId()
    {
        return contentId;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setPlnrid(Long plnrid)
    {
        this.plnrid = plnrid;
    }

    public Long getPlnrid()
    {
        return plnrid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("createDate", getCreateDate())
            .append("pid", getPid())
            .append("contentId", getContentId())
            .append("type", getType())
            .append("plnrid", getPlnrid())
            .toString();
    }
}
